import request from '@/utils/request'

// 查询中转站物品列表
export function listTransferItem(query) {
  return request({
    url: '/transferItem/transferItem/list',
    method: 'get',
    params: query
  })
}

// 查询中转站物品详细
export function getTransferItem(id) {
  return request({
    url: '/transferItem/transferItem/' + id,
    method: 'get'
  })
}

// 新增中转站物品
export function addTransferItem(data) {
  return request({
    url: '/transferItem/transferItem',
    method: 'post',
    data: data
  })
}

// 修改中转站物品
export function updateTransferItem(data) {
  return request({
    url: '/transferItem/transferItem',
    method: 'put',
    data: data
  })
}

// 删除中转站物品
export function delTransferItem(id) {
  return request({
    url: '/transferItem/transferItem/' + id,
    method: 'delete'
  })
}
